<!-- 个人中心 -->
<template>
	<view>
		<view class="title_box">
			<view @click="clickItem(item)" v-for="(item, i) in titleList" :key="i" style="margin-left: 30rpx;">
				<view style="position: relative;display: flex;">
					<view class="dian" v-if="handleitem==item"></view>
					<view :class="item==handleitem?'yname':'noname'">{{item}}</view>
				</view>
			</view>
		</view>
	<!-- 	<view v-if="handleitem == '全部'">

		</view> -->
		<view  >
			<view class="orderBox">
				<view class="dingdan">订单编号：37758960439756098584</view>
				<view class="orderItem">
					<view class="order2">
						<view style="width: 30%;">
							<image style="width: 126rpx;height: 131rpx;" src="https://huboshizb.bigchun.com/uploads/20220912/6ed7199c7e2c948923333c9b38f58f31.png"></image>
						</view>
						<view class="order2-item">
							<view class="order2-name">珠宝项链</view>
							<view class="order2-xia">
								<view class="order2-money">￥120.0</view>
								<view class="order2-num">x1</view>
							</view>
						</view>
					</view>
					<view class="br"></view>
					<view class="order2">
						<view style="width: 30%;">
							<image style="width: 126rpx;height: 131rpx;" src="https://huboshizb.bigchun.com/uploads/20220912/6ed7199c7e2c948923333c9b38f58f31.png"></image>
						</view>
						<view class="order2-item">
							<view class="order2-name">珠宝项链</view>
							<view class="order2-xia">
								<view class="order2-money">￥120.0</view>
								<view class="order2-num">x1</view>
							</view>
						</view>
					</view>
					<view class="br"></view>

					<view class="bot">
						<view style="flex: 1;">
							
						</view>
						<view class="bottem">
						<view>共2件商品</view>
						<view>运费运费￥3.00 </view>
						<view>合计：￥243.00</view>
					</view>
					</view>
					<view class="bot-bottom">
						<view style="flex: 1;">
						<view class="xiangqing" @click="todetail()">查看详情</view></view>
						<view class="status">已完成</view>
					</view>
				</view>
			</view>

		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				handleitem: '全部',
				titleList: [
					"全部", "待付款", "待发货", "待收货", "待评价", "已完成"
				],

			}
		},
		onLoad() {},
		onShow() {

		},
		computed: {

		},
		methods: {
			clickItem(val) {
				console.log("111", val)
				this.handleitem = val
			},
			todetail(){
				uni.navigateTo({
					url:'/pages/shop/goodsdetail'
				})
			}
		},
	}
</script>
<style>
	page {
		background: #F5F5F5 !important;
		/* height: 100%;
		min-height: 100%; */
	}
</style>
<style lang="scss" scoped>
	* {
		box-sizing: border-box;
		margin: 0;
		padding: 0;

	}

	.container {
		padding: 30rpx;
	}

	.title_box {
		display: flex;
		// justify-content: space-around;
		// margin-top: 33rpx;
		padding: 30rpx 0rpx 0rpx 30rpx;
	}

	.dian {
		background-size: 100% 100%;
		width: 35rpx;
		height: 35rpx;
		background-image: url('/static/image/fenxiao26.png');
		position: absolute;
		top: -5px;
		left: -7px;
	}

	.noname {
		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #333333;
		z-index: 9;
		// width: 100rpx;
	}

	.yname {
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: bold;
		color: #333333;
		// position: absolute;
		// width: 100rpx;
		left: 20rpx;
		top: 0rpx;
		z-index: 9;
	}

	.orderBox {
		margin-top: 38rpx;
		box-shadow: 0px -4rpx 21rpx 0rpx rgba(120, 98, 96, 0.11);
		border-radius: 28rpx;
		background: #F8F8F8;
		padding-top: 30rpx;
	}

	.boxitem {
		// padding-top: 30rpx;
	}

	.orderItem {
		background: #FFFFFF;
		border-radius: 28rpx;
		padding-bottom: 30rpx;
	}

	.order2 {
		// height: 211rpx;

		padding: 30rpx;
		// margin-top: 28rpx;
		display: flex;
	}

	.order2-item {
		width: 70%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.order2-name {
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #333333;
	}

	.order2-money {
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: bold;
		color: #FF0000;
	}

	.order2-num {
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #999999;
	}

	.order2-xia {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.dingdan {
		margin-left: 30rpx;
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #999999;
		margin-bottom: 30rpx;

	}

	.br {
		border: 1px solid #F2F2F2;
		padding-left: 30rpx;
		padding-right: 30rpx;
	}

	.bot {
		display: flex;
		margin-top: 20rpx;
		padding-right: 30rpx;
	}
	.bottem{
		display: flex;
		font-size: 24rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #333333;
	}
	.bot-bottom{
		display: flex;
		align-items: center;
		margin-top: 30rpx;
		margin-left: 30rpx;
		margin-right: 30rpx;
	}
	.xiangqing{
		background-image: url('/static/image/zb21.png');
		background-size: 100% 100%;
		width: 180rpx;
		height: 64rpx;
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #999999;
		line-height: 56rpx;
		text-align: center;
	}
	.status{
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #00A2FF;
	}
</style>
